package com.hsteach.dao.mapper;


import com.hsteach.dao.domain.patrol.Student;
import com.hsteach.dao.domain.patrol.Teacher;
import com.hsteach.web.controller.patrol.dto.QueryStudentDTO;
import com.hsteach.web.controller.patrol.dto.StudentDTO;
import com.hsteach.web.dto.ScoreRolePageDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author mgb
 * @version PatrolRoleMapper, java v1.0 2023-11-11 17:26 EXP $
 */
public interface PatrolRoleMapper {

    int addStudent(@Param("studentList") List<Student> studentList);

    List<Student> queryStudentList(QueryStudentDTO student );

    int addTeacher(@Param("teachers") List<Teacher> teachers);

    /**
     * 教师列表查询
     * @return
     */
    List<Teacher> queryTeacherList(ScoreRolePageDto dto);

    /**
     * 删除学生
     * @param studentId
     * @return
     */
    int deleteStudent(String studentId);

    int deleteTeacher(String teacherId);

    List<Student> queryStudentByNumber(@Param("studentDTOS") List<StudentDTO> studentDTOS,
                                       @Param("orgCode") String orgCode);

    void batchUpdate(@Param("newTeacher") List<Teacher> newTeacher);
}
